package com.uwo.house.dao;

import com.uwo.house.beans.request.HouseAddReq;
import com.uwo.house.beans.request.ModifySampleReq;
import com.uwo.house.beans.request.SampleHouseReq;
import com.uwo.house.beans.response.SampleHousesResp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by YZYG on 2017/7/19.
 */
@Repository
public interface SampleHousesDao {
    List<SampleHousesResp> getSampleHouses(SampleHouseReq sampleHouseReq);

    SampleHousesResp getSampleHouseById(int houseId);

    int addSampleHouses(HouseAddReq houseAddReq);

    int updateSampleHouses(ModifySampleReq modifySampleReq);

    int deleteSampleHouses(int houseId);

    List<SampleHousesResp> getSampleHousesByCondition(@Param("province") String province,
                                                      @Param("city") String city,
                                                      @Param("blockName") String blockName,
                                                      @Param("houseType") String houseType,
                                                      @Param("space") String space,
                                                      @Param("decorationStyle") String decorationStyle,
                                                      @Param("areaSizeFrom") Double areaSizeFrom,
                                                      @Param("areaSizeTo") Double areaSizeTo,
                                                      @Param("dealPriceFrom") BigDecimal dealPriceFrom,
                                                      @Param("dealPriceTo") BigDecimal dealPriceTo,
                                                      @Param("searchKey") String searchKey);
}
